package com.ruoyi.blog.constant;

/**
 * @Author: 依梦
 * @Date: 2024/10/26
 * @Description: ArticleConStant
 */
public enum ArticleStatus {
    DRAFT(0, "草稿"),
    PUBLISHED(1, "已发布");

    private final int code;
    private final String description;

    // 构造函数
    ArticleStatus(int code, String description) {
        this.code = code;
        this.description = description;
    }

    // 获取代码的方法
    public int getCode() {
        return code;
    }

    // 获取描述的方法
    public String getDescription() {
        return description;
    }
}
